package com.OjSystem.common.core.config;

import com.OjSystem.common.core.aspect.ExceptionAspect;
import com.OjSystem.common.core.aspect.ResponseAspect;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class CommonCoreAutoConfig {
    @Bean
    public ResponseAspect responseAspect(){
        return new ResponseAspect();
    }

    @Bean
    public ExceptionAspect exceptionAspect(){
        return new ExceptionAspect();
    }

}
